import Vue from 'vue';
import Router from 'vue-router';
import Home from '../views/Home.vue';
import Cart from '../views/Cart.vue';
import UserProfile from '../views/UserProfile.vue';
import Recommendations from '../views/Recommendations.vue';
import OrderList from '../views/OrderList.vue';
import OrderDetail from '../views/OrderDetail.vue';
import BabyGrowthRecommendations from '../views/BabyGrowthRecommendations.vue';
import MomCareRecommendations from '../views/MomCareRecommendations.vue';

Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
    },
    {
      path: '/cart',
      name: 'Cart',
      component: Cart,
    },
    {
      path: '/profile',
      name: 'UserProfile',
      component: UserProfile,
    },
    {
      path: '/recommendations',
      name: 'Recommendations',
      component: Recommendations,
    },
    {
      path: '/orders',
      name: 'OrderList',
      component: OrderList,
    },
    {
      path: '/orders/:id',
      name: 'OrderDetail',
      component: OrderDetail,
    },
    {
      path: '/baby-growth-recommendations',
      name: 'BabyGrowthRecommendations',
      component: BabyGrowthRecommendations,
    },
    {
      path: '/mom-care-recommendations',
      name: 'MomCareRecommendations',
      component: MomCareRecommendations,
    },
  ],
});
